package com.lagou.edu.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/email")
public class EmailController {

    @RequestMapping("/{email}/{code}")
    public boolean sendCodeByEmail(@PathVariable String email,@PathVariable String code){
        System.out.println("==========成功将验证码:" + code + "发送到：" + email + "邮箱");
        return true;
    }
}
